import request from "@/axios/request";

import url from "@/axios/url";
const { mesUrl, adminUrl } = url();

const mindQueryNextNodes = (params, isShare) => {
  return request({
    url: adminUrl + `retrospect/queryNextNodes${isShare ? "NoToken" : ""}`,
    headers: {
      type: "mind",
    },
    method: "post",
   data: params,
  });
};
const mindQueryNodeInfo = (params, isShare) => {
  return request({
    url: adminUrl + `retrospect/queryNodeInfo${isShare ? "NoToken" : ""}`,
    method: "post",
    headers: {
      type: "mind",
    },
    data: params,
  });
};
const listByBarcodeOrSn = (params) => {
  return request({
    url: mesUrl + "mesFqcTaskDetail/listByBarcodeOrSn",
    method: "get",
    params,
  });
};
export { mindQueryNextNodes, mindQueryNodeInfo, listByBarcodeOrSn };
